/*
 *
 *  RootViewController use Custom Activity
 *  Edit View Index
 *  Use Static Method 'shareController' changeView
 *
 */

#import <UIKit/UIKit.h>
#import "Activity.h"

typedef enum {
    VIEW_INDEX_NONE = 0,
    VIEW_INDEX_MAIN,
    VIEW_INDEX_GPS
    //Add Your View Index
} VIEW_INDEX;

typedef enum {
    ANIMATION_INDEX_NONE = 0,
    ANIMATION_INDEX_FLIP,
    ANIMATION_INDEX_ALPHA
} ANIMATION_INDEX;

@class Activity;

@interface RootViewController : UIViewController
{
    VIEW_INDEX viewIndex;
    VIEW_INDEX beforeIndex;
    Activity *activity;
    Activity *beforeActivity;
}

@property(nonatomic,retain) Activity *activity;
@property(nonatomic,retain) Activity *beforeActivity;

+ (id)sharedContorller;
- (void)changeView:(VIEW_INDEX)index animation:(ANIMATION_INDEX)animation;
- (Activity*)getCurrentActivity;
- (Activity*)getBeforeActivity;

@end
